package com.bbf.springbootdemo;

import com.bbf.springbootdemo.feature.CustomProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

/**
 * SpringBoot 入口类
 * @author BBF
 */
@SpringBootApplication
@PropertySource("classpath:config/custom.properties")
@EnableConfigurationProperties({CustomProperties.class})
@ImportResource(locations = {"classpath:spring-config.xml"})
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }

}
